package model.symbol;

/**
 * This class is for all built-in (i.e. {@link Keyword}) {@link DataType}s.
 *
 * @author Neil Dickson
 */
public class KeywordDataType extends Keyword implements DataType {
	private	int		size;

	/**
	 * Constructs a new data type that is a keyword
	 * @param keyword		the name of the keyword
	 * @param description	a description of the keyword
	 * @param size			the size of the data type in bytes
	 */
	public KeywordDataType(String keyword, String description, int size) {
		super(true,keyword, description);
		this.size = size;
	}

	/**
	 * @return size in bytes of the DataType
	 */
	public int getSize() {
		return size;
	}
}
